package com.yykj.hospital.server.model.repository;

import com.yykj.hospital.server.model.entity.Hospital;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 *
 * Created by chendg on 2021/9/8 0008.
 */
@Repository
public interface HospitalRepository extends JpaRepository<Hospital, Integer> {

	Page<Hospital> findAllByName(String name, Pageable pageable);

	Hospital findFirstByOrderByIdDesc();

}
